<%@ page import="pojo.User" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>修改用户信息</title>
    <link type="text/css" rel="stylesheet" href="../skin/css/table.css" />
    <link type="text/css" rel="stylesheet" href="../skin/css/form.css" />
    <script type="text/javascript" src="../skin/js/jquery-1.7.1.js"></script>
    <script type="text/javascript" src="../skin/js/form.js"></script>
    <script type="text/javascript">
        $(document).ready(function (e) {
            $("#sex").val("${user.sex}");
            $("#department").val("${user.department}");
            $("#roleName").val("${user.roleName}");
        }) ;
    </script>
</head>

<body>
<jsp:include page="../functionModule.jsp"/>
<!--right-->
<div class="right_layout">
    <img src="../skin/images/left_hidden1_03.png" class="hidden_img"/>
    <div class="right_content">
        <div class="hr-5"></div>
        <div >
            <div class="right_back fyh"><a href="javascript:history.go(-1)">返回</a></div>
        </div>
        <form action="${pageContext.request.contextPath}/user?method=editUserInfo&id=${user.id}" class="fm" method="post">
            <table class="fm_tab" >
                <tr>
                    <td width="15%" class="fm_td1 fyh"><span class="fm_text">用户名</span></td>
                    <td width="35%" class="fm_td2"><input readonly value="${user.username}" type="text" class="fm_tt1" style="width:80%"/></td>
                </tr>
                <tr>
                    <td class="fm_td1 fyh"><span class="fm_text">性别</span></td>
                    <td class="fm_td2">
                        <select name="sex" id="sex">
                            <option value="男">男</option>
                            <option value="女">女</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td class="fm_td1 fyh"><span class="fm_text">部门</span></td>
                    <td class="fm_td2">
                        <select name="department" id="department">
                            <option value="">请选择</option>
                            <c:forEach items="${departmentList}" var="department" varStatus="vs">
                                <option value="${department.department}">${department.department}</option>
                            </c:forEach>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td class="fm_td1 fyh"><span class="fm_text">职位</span></td>
                    <td class="fm_td2">
                        <select name="roleName" id="roleName">
                            <option value="">请选择</option>
                            <option value="普通员工">普通员工</option>
                            <option value="部长">部长</option>
                            <option value="总经理">总经理</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td width="15%" class="fm_td1 fyh"><span class="fm_text">联系方式</span></td>
                    <td width="35%" class="fm_td2"><input value="${user.tl}" name="tl" type="text" class="fm_tt1" style="width:80%"/></td>
                </tr>
                <tr>
                    <td width="15%" class="fm_td1 fyh"><span class="fm_text">姓名</span></td>
                    <td width="35%" class="fm_td2"><input value="${user.realName}" name="realName" type="text" class="fm_tt1" style="width:80%"/></td>
                </tr>
                <tr>
                    <td class="fm_td5" colspan="4">
                        <input type="button" value="" class="fm_img1"/><input type="button" class="fm_button fyh" value="提&nbsp;&nbsp;&nbsp;&nbsp;交"/><input type="button" value="" class="fm_img2"/>
                    </td>
                </tr>
            </table>
        </form>
    </div>

    <div class="floor fyh">软件开发：&nbsp;赣州科睿特软件技术有限公司(技术支持)&nbsp;&nbsp;&nbsp;&nbsp;客服电话：&nbsp;0797-8356742</div>
</div>
<div class="form_zz">
    <div class="form_zzbg"></div>
    <div class="form_zzcontent">
        <h1 class="fyh form_zztit"><img src="skin/images/form_zz_icon_03.png" class="form_zzimg"/>提示信息</h1>
        <div class="form_ts fyh">提交完成，请确认！</div>
        <div class="form_zzbutton">
            <input type="button" value="" class="form_zzbt1"/><input type="button" value="确&nbsp;定" class="form_zzan1 fyh"/><input type="button" value="" class="form_zzbt2 form_zzright"/>
            <input type="button" value="" class="form_zzbt3"/><input type="button" value="取&nbsp;消" class="form_zzan2 fyh"/><input type="button" value="" class="form_zzbt4"/>
        </div>
    </div>
</div>
</body>
</html>


